<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<!-- SVN FILE: $Id: login.php 8 2011-03-13 08:32:38Z michele.andreoletti@gmail.com $ -->
	
	<!--		
	Project Name : arcadia

	@author $Author: michele.andreoletti@gmail.com $
	@version $Revision: 8 $
	@lastrevision $Date: 2011-03-13 08:32:38 +0000 (Sun, 13 Mar 2011) $
	@filesource $URL: http://arcadia.googlecode.com/svn/trunk/themes/default/login.php $
	-->

<head>
	<title>Autenticazione</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link href="themes/<?php echo $sTHEME; ?>/stylesheets/login.css" media="screen" rel="stylesheet" type="text/css" />
	<link href='themes/common/images/<?php echo $sFAVICON; ?>' rel='shortcut icon'/>	
	<script type="text/javascript" src="include/jquery-ui/js/jquery-1.4.4.min.js"></script>
	<link type="text/css" href="themes/<?php echo $sTHEME; ?>/stylesheets/menu.css" rel="stylesheet" />
	<script type="text/javascript" src="include/jquery-ui/js/jquery-ui-1.8.7.custom.min.js"></script>
	<link type="text/css" href="include/jquery-ui/css/redmond/jquery-ui-1.8.7.custom.css" rel="stylesheet" />
	<script type="text/javascript" src="include/jquery.validate.min.js"></script>

	<script type="text/javascript" src="include/jquery.label.over.js"></script>

	<style type="text/css">
		.fields { position: relative; float: left; }
		label { color:#585858; margin-left:7px; }
		label.over-apply { color: #ccc; position: absolute; top: 5px; left: 5px; }
	</style>

	<script type="text/javascript" charset="utf-8">
		$().ready(function() {

			$('label.over-apply').labelOver('over')
			
			$("input:submit").button();

			$('#LoginForm').submit(function() {
				if ($('#sLogin').val().length <= 0 || $('#sPassword').val().length <= 0 )  {
					$('#EmptyFormDialog').dialog('open');
				  	return false;
				}
			});	

			$('#EmptyFormDialog').dialog( {
				autoOpen: false,
				resizable: false,
				modal: true,
				buttons: {
					Ok: function() {
						$(this).dialog('close');
					}
				}
			});

		});
	</script>

</head>

<body id="loginPage">
	<div id="container">
	<i id="quotes"><?php echo str_replace(' (','<br/>(',$aPIRATES[array_rand($aPIRATES)]);?></i>
	<img src="themes/<?php echo $sTHEME; ?>/images/loginMasthead.png" alt="arcadia" height="106" width="506" /><div id="loginBox">
			<?php if ($bFailed)  { ?><div id="flash">Utente/Password non validi</div><?php } ?>
			<form action="login.php" id="LoginForm" class="buttons" method="post">
				<input type="hidden" name="sRedirect" value="<?php echo $sRedirect; ?>" />
				<?php if (isset($sInputs)) { echo $sInputs; } ?>
				
				<div class='fields'><label for="sLogin" class="over-apply">Utente</label>
			    <input id="sLogin" name="sLogin" type="text" />            
				<div class='fields'><label for="sPassword" class="over-apply">Password</label>
			    <input id="sPassword" name="sPassword" type="password" />
				
			    <label for="iRememberMe" class='remember_me'>
				    <input class='remember_me' name="iRememberMe" type="checkbox" value="1" checked="checked" />
				    Ricordati di me su questo computer
			    </label>

			    <p id="submit"><input name="commit" type="submit" value="Login"/></p>
			  <!--
			    <p id="lost_password"><a href="/users/request_password">I have lost my password &mdash; Email me!</a></p>
			    -->
			</form>
	   	</div>
	</div>

	<div id="EmptyFormDialog" title="Autenticazione">
		<p>Inserire nome <strong>utente</strong> e <strong>password</strong> per eseguire l'accesso.</p>
	</div>			

</body>
</html>




